#pragma once
#include "State.h"
class StateManager
{
private:
	StateManager();
	static StateManager* instance;
	State* listState[10];
	int count = 0;
public:
	~StateManager();
	State *currentState;
	static StateManager* GetInstance();

	void AddState(State* newState);
	State* GetState(int index);
	void SwitchState(State* state,bool isReleaseOldState);
};

